package my.package0407;

import java.util.Scanner;

public class dome6 {
    public static void main(String[] args) {
        double a=getnumber();
        System.out.println(a);
    }
    public static double getnumber() {
        Scanner SC = new Scanner(System.in);
        System.out.println("Enter the value of X:");
        double x = SC.nextDouble();
        System.out.println("Enter the value of Y:");
        double y = SC.nextDouble();
        System.out.println("Enter the value of Z");
        double z = SC.nextDouble();
        double result= Math.pow(x, 3) + Math.pow(y, 3) + Math.pow(z, 3);
        return result;
    }
}
